package com.sky.mapper.common;

import com.sky.pojo.SetmealDish;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Description SetmealDishMapper
 * @Author GGBond
 * @Date 2024-10-06
 */
@Mapper
public interface SetmealDishMapper {

    Integer selectCountByDishIds(@Param("ids") List<Long> ids);

    void insertBatch(List<SetmealDish> setmealDishes);

    @Delete("delete from setmeal_dish where setmeal_id=#{setmealId}")
    void deleteBySetmealId(Long setmealId);
}
